#include<stdio.h>
	int main(void)
	{  
	  /*********Begin*********/
	  int a[5], sum = 0;
      double avg;
      scanf("%d%d%d%d%d", a, a + 1, a + 2, a + 3 , a + 4);
      for (int i = 0; i < 5; ++i) {
          sum += a[i];
      }
	  avg = sum / 5.0;
      printf("%d %.2f", sum, avg);
	  /*********End**********/ 
       return 0;
	}
